package org.jeecg.modules.demo.mall.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 库存表
 * @Author: jeecg-boot
 * @Date:   2025-08-15
 * @Version: V1.0
 */
@Data
@TableName("mall_product_inventory")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="库存表")
public class MallProductInventory implements Serializable {
    private static final long serialVersionUID = 1L;

	/**库存记录唯一标识*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "库存记录唯一标识")
    private java.lang.Integer id;
	/**商品ID*/
	@Excel(name = "商品ID", width = 15)
    @Schema(description = "商品ID")
    private java.lang.String productId;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @Schema(description = "商品名称")
    private java.lang.String productName;
	/**商品规格或型号*/
	@Excel(name = "商品规格或型号", width = 15)
    @Schema(description = "商品规格或型号")
    private java.lang.String specification;
	/**当前库存数量*/
	@Excel(name = "当前库存数量", width = 15)
    @Schema(description = "当前库存数量")
    private java.lang.Integer currentStock;
	/**库存预警阈值*/
	@Excel(name = "库存预警阈值", width = 15)
    @Schema(description = "库存预警阈值")
    private java.lang.Integer warningThreshold;
	/**商品单价*/
	@Excel(name = "商品单价", width = 15)
    @Schema(description = "商品单价")
    private java.math.BigDecimal unitPrice;
	/**库存总价值(自动计算)*/
	@Excel(name = "库存总价值(自动计算)", width = 15)
    @Schema(description = "库存总价值(自动计算)")
    private java.math.BigDecimal stockValue;
	/**商品存放仓库位置*/
	@Excel(name = "商品存放仓库位置", width = 15)
    @Schema(description = "商品存放仓库位置")
    private java.lang.String warehouseLocation;
	/**最后入库时间*/
	@Excel(name = "最后入库时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最后入库时间")
    private java.util.Date lastStockInTime;
	/**最后出库时间*/
	@Excel(name = "最后出库时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最后出库时间")
    private java.util.Date lastStockOutTime;
	/**创建人*/
    @Schema(description = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private java.util.Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private java.lang.String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private java.util.Date updateTime;
	/**所属部门编码*/
    @Schema(description = "所属部门编码")
    private java.lang.String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @Schema(description = "租户ID")
    private java.lang.Integer tenantId;
}
